<template>
    <div class="select">
    <top></top>

        <div class="selectBox">
            <div class="selectMain">
                     <div class="selectList" v-for="(item,index) in obj" :key="index">
            <div @click="toggleTab('select1')" class="item  ">{{ item[0] }}</div>
            <div @click="toggleTab('select2')" class="item ">{{ item[1] }}</div>
            <div @click="toggleTab('select3')" class="item ">{{ item[2] }}</div>
        </div>
        <div class="secectCon">
                <select1 :is="currentTab" keep-alive>
              </select1> 
        </div>
            </div>
                    <div class="tabbar">
                       <div class="main">
            <div class="box">
              <div class="title">
                <div class="name">
                  <div class="name-h">
                      <h3>hello,张三</h3>
              
                  </div>
                
                </div>
              </div>
                </div>
                        <div class="info_right">
                <div class="head">
              
                    <div class="adress">
                     <div class="item">预算单</div>
                     <div class="item">￥10280</div>
                    </div>
                      <div class="wedding1">
                          <div class="weddingserve">
                              
                 <div class="item">婚礼服务</div>
                     <div class="item">￥1680</div>
                    
                          </div>

                           <div class="weddingName">
                                   <div class="item">司仪: <span>南天</span></div>
                     <div class="item">￥10280</div>
                    </div>
                    </div>
                    <div class="wedding2">
                                <div class="weddingcarserve">
                                    
                     <div class="item">婚车服务</div>
                     <div class="item">￥8600</div>
                    </div> 
                    <div class="count">
                        <div class="item">
                            <div>婚车: <span>金龙大巴33座 X4</span></div>
                                <div>计算器</div>
                        </div>
                        <div class="item">￥2800</div>
                    </div>
                    </div>
                
                </div>
           
              </div>
            
              </div>
            </div>
        </div>
            

         
  

   
    </div>
</template>
<script>
import top from "../top";
// import mainBox from "../mainBox";
import select1 from "../../components/select/selectItem1";
import select2 from "../../components/select/selectItem2";
import select3 from "../../components/select/selectItem3";
export default {
  components: {
    top,
    select1,
    select2,
    select3
  },
  data() {
    return {
      currentTab: "select1",
      obj: {
        arr: ["现场布置", "婚礼服务", "婚车租赁"]
      }
    };
  },
  methods: {
    toggleTab: function(tab) {
      this.currentTab = tab;
    }
  }
};
</script>
<style scoped>

.select{
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.selectBox {
  width: 100%;
  height: 900px;
  background-color: #121212;
  display: flex;
  justify-content: space-between;
}
.selectMain {
  height: 60px;
  background-color: #1c1c1c;
  flex: 4;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 20px;
  position: relative;
}
.secectCon {
  width: 100%;
  height: 500px;
  background-color: #1c1c1c;
  margin-top: 60px;
}
.selectList {
  width: 300px;
  height: 35px;
  line-height: 35px;
  /* background-color: tan; */
  position: absolute;
  top: 10px;
  right: 35%;
  display: flex;
  justify-content: space-between;
}

.selectList .item {
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  text-align: center;
  padding: 0 10px;
}

.selectList .item:hover {
  color: #fe3b88;
  /* transition: all 0.3s; */
  background-color: saddlebrown;
  border-radius: 15px;
}

.selectList .item:hover::after {
  content: "";
  display: block;
  width: 15px;
  border-bottom: 2px solid #fe3b88;
  margin: 0 auto;
}
.tabbar {
  height: 100%;
  flex: 1;
  background-color: #202020;
  display: flex;
  flex-direction: column;
}
.main {
  /* margin: 20px 40px 0 40px; */
}
.box {
  border-bottom: 1px solid #ccc;
  margin: 20px 20px 0 20px;
}
.box .name {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}
.box .name .name-h h3 {
  font-size: 14px;
  color: #fff;
}
.box .name .name-h .text {
  color: #5c5c5c;
  font-size: 14px;
}
.box .name-mark::after {
  content: "\e772";
  font-family: "iconfont";
  color: red;
  font-size: 20px;
}

.info_right {
  width: 100%;
  height: 100%;
  margin-top: 40px;
}
.info_right .head {
  /* margin: 0 40px; */
}
.info_right .head .adress {
  padding: 0 20px;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  color: #fff;
  /* margin-left: 5px; */
  font-size: 18px;
}
.info_right .head .adress .item:nth-child(2) {
  color: red;
  font-weight: 500;
}
.info_right .head .wedding1 {
  margin-top: 20px;
}
.wedding1 .weddingserve {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #fff;
  background-color: #121212;
  opacity: 0.3;
  height: 30px;
  line-height: 30px;
  position: relative;
}

.weddingserve::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: auto;
  right: auto;
  height: 52%;
  width: 3px;
  background-color: #fe3b88;
}
.wedding1 .weddingName {
  padding: 10px 20px 0 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #fff;

  height: 30px;
  line-height: 30px;
}
.info_right .head .wedding2 {
  margin-top: 60px;
}
.wedding2 .weddingcarserve {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #fff;
  background-color: #121212;
  opacity: 0.3;
  height: 30px;
  line-height: 30px;
  position: relative;
}
.weddingcarserve::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: auto;
  right: auto;
  height: 52%;
  width: 3px;
  background-color: #fe3b88;
}
.wedding2 .count {
  padding: 10px 20px 0 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #fff;

  height: 30px;
  line-height: 30px;
}
.info_right .lists {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
}
.info_right .lists .list {
  font-size: 12px;
  color: #fff;
  margin-right: 10px;

  background-color: #2e2e2e;
  padding: 3px 5px;
}
.vitae {
  margin-top: 20px;
  color: #fff;
  font-size: 14px;
}
</style>

